package 设计模式.工厂模式.factorymethod;

/**
 * @description:
 * @author: asd
 * @time: 2022/11/18 1:43
 */
public class BlackHumanFactory extends AbstractHumanFactory{
    @Override
    public Human createHuman() {
        return new BlackHuman();
    }
}
class BlackHuman implements Human{

    @Override
    public void print() {
        System.out.println("黑人");
    }
}